<?php
	class m_signin extends spModel
	{
		var $pk = 'signid';
		var $table = "signin"; // 数据表的名称

		function checkthreeday($visitor_id)
		{
			$sql = "SELECT * FROM signin WHERE sign_date=CURDATE() AND sign_date=DATE_SUB(CURDATE(), INTERVAL 1 DAY) AND sign_date=DATE_SUB(CURDATE(), INTERVAL 2 DAY) AND visitor_id=$visitor_id";
			return !empty($this->findSql($sql)) ? true : false;
		}
	}
?>